package com.mpj.yolov12;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";


    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

        findViewById(R.id.btn_camera_detect).setOnClickListener(view -> startActivity(new Intent(MainActivity.this, CameraActivity.class)));
        findViewById(R.id.btn_picture_detect).setOnClickListener(view -> startActivity(new Intent(MainActivity.this, CustomActivity.class)));
        findViewById(R.id.btn_socket_data).setOnClickListener(view -> startActivity(new Intent(MainActivity.this, SecActivity.class)));
    }

}